package com.zz.service;

import com.zz.common.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 * @author HUAWEI
 */
public interface QiniuService {

    /**
     * 七牛云文件上传
     *
     */
    R upload(MultipartFile file);

    /**
    * 上传头像
    * */
    R<String> uploadUser(MultipartFile file, HttpServletRequest request);

    /**
     * 社团上传图片
     * */
    R<String> uploadClub(int clubId, MultipartFile file);

    /**
     * 上传活动图片
     * */
    R<String> uploadActivity(int activityId, MultipartFile file);

    /**
     * 获取社团图片url
     * */
    R<String> getClubUrl(int clubId);

    /**
     * 获取头像图片url
     * */
    R<String> getUserUrl(int userId);

    /**
     * 获取活动图片url
     * */
    R<String> getActivityUrl(int activityId);
}
